package com.synergy.stockflow.sales.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.sales.entity.Quotation;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.synergy.stockflow.sales.mapper.OrderReturnsMapper;
import com.synergy.stockflow.sales.entity.OrderReturns;
import com.synergy.stockflow.sales.service.OrderReturnsService;
@Service
public class OrderReturnsServiceImpl extends ServiceImpl<OrderReturnsMapper, OrderReturns> implements OrderReturnsService{

    @Override
    public Page<OrderReturns> select(Page<OrderReturns> page,
                                     String orderReturnsId,
                                     String orderReturnsQuotationId,
                                     String orderReturnsWarehouse) {
        List<OrderReturns> orderReturns = baseMapper.select(page, orderReturnsId, orderReturnsQuotationId, orderReturnsWarehouse);
        page.setRecords(orderReturns);
        return page;
    }
}
